<h1>Внеси нова фирма</h1>
<?php //print_r($client_group) ?>

<?php echo $form->create('Company', array('action' => 'create'));?>

<?php 
	// the company
	echo $form->select('Company.city_id', $cities, null, null, false);
	echo $form->input('Company.name');
	echo $form->input('Company.contact_person');
	echo $form->input('Company.phone');
	echo $form->input('Company.address');

	// the user
	echo $form->input('User.first_name');
	echo $form->input('User.last_name');
	echo $form->input('User.username', array('after' => $form->error('username_unique', 'The username is taken. Choose another one.')));

	echo $form->input('User.email');
	echo $form->input('User.password');
?>

<?php echo $form->hidden('User.group_id',array('value'=>$client_group['Group']['id']));?>
 

<?php echo $form->end('Create');?>